﻿
$(document).ready(function () {
    var divForReportViewer = $('#DivForReportViewer');
    if ((divForReportViewer != null) && (divForReportViewer != undefined)) {
        divForReportViewer.height($(window).height() - 30);
        //divForReportViewer.width($(window).width() - 30);
    } else {
        alert('Element DivForReportViewer could not be found!!');
    }
});

$(window).resize(function () {
    var divForReportViewer = $('#DivForReportViewer');
    if ((divForReportViewer != null) && (divForReportViewer != undefined)) {
        divForReportViewer.height($(window).height() - 30);
        //divForReportViewer.width($(window).width() - 30);
    } else {
        alert('Element DivForReportViewer could not be found!!');
    }
});
